/* Copyright 2009 Requirements Management System 
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.mags.remas.model.entity;

// Generated Jan 6, 2010 10:30:52 PM by Hibernate Tools 3.2.2.GA

/**
 * LinkStructureId generated by hbm2java
 */
public class LinkStructureId implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	private int entityTypeId;
	private int entityTypeParentId;
	private int linkEntityTypeId;
	private int linkEntityTypeParentId;

	public LinkStructureId() {
	}

	public int getEntityTypeId() {
		return this.entityTypeId;
	}

	public void setEntityTypeId(int entityTypeId) {
		this.entityTypeId = entityTypeId;
	}

	public int getEntityTypeParentId() {
		return this.entityTypeParentId;
	}

	public void setEntityTypeParentId(int entityTypeParentId) {
		this.entityTypeParentId = entityTypeParentId;
	}

	public int getLinkEntityTypeId() {
		return this.linkEntityTypeId;
	}

	public void setLinkEntityTypeId(int linkEntityTypeId) {
		this.linkEntityTypeId = linkEntityTypeId;
	}

	public int getLinkEntityTypeParentId() {
		return this.linkEntityTypeParentId;
	}

	public void setLinkEntityTypeParentId(int linkEntityTypeParentId) {
		this.linkEntityTypeParentId = linkEntityTypeParentId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof LinkStructureId))
			return false;
		LinkStructureId castOther = (LinkStructureId) other;

		return (this.getEntityTypeId() == castOther.getEntityTypeId())
				&& (this.getEntityTypeParentId() == castOther
						.getEntityTypeParentId())
				&& (this.getLinkEntityTypeId() == castOther
						.getLinkEntityTypeId())
				&& (this.getLinkEntityTypeParentId() == castOther
						.getLinkEntityTypeParentId());
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + this.getEntityTypeId();
		result = 37 * result + this.getEntityTypeParentId();
		result = 37 * result + this.getLinkEntityTypeId();
		result = 37 * result + this.getLinkEntityTypeParentId();
		return result;
	}

}
